package com.qiaofang.applet.service.member.domain;

import com.qiaofang.applet.common.base.BaseDomain;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.mongodb.core.mapping.Document;

import java.math.BigDecimal;
import java.util.Date;

@Data
@Document(collection = "member_member_operate")
@ApiModel("会员操作记录表")
@NoArgsConstructor
@AllArgsConstructor
public class MemberOperate extends BaseDomain {

    @ApiModelProperty("会员ID")
    private String memberId;

    @ApiModelProperty("操作类型: 1 浏览  2 分享  3 聊天 4 拨打电话")
    private Integer operateType;

    @ApiModelProperty("业务类型: 1 新房 2 二手房 3 租房 4 经纪人")
    private Integer businessType;

    @ApiModelProperty("业务UUID：房源UUID或者员工UUID")
    private String businessUuid;

    @ApiModelProperty("所属经纪人")
    private String employeeUniqueUuid;

    @ApiModelProperty("层级")
    private Integer level;

    @ApiModelProperty("分享链路uuid")
    private String linkedUuid;

    @ApiModelProperty("父级ID")
    private String parentId;

    @ApiModelProperty("是否展示经纪人列表")
    private Boolean showEmpList;

    @ApiModelProperty("结束时间")
    private Date endTime;

    @ApiModelProperty("会员名称")
    private String memberName;

    @ApiModelProperty("是否已读")
    private Boolean read;


    /**
     * 以下字段只有当业务类型为 1 新房 2 二手房 3 租房时才保存
     */

    @ApiModelProperty("所在地")
    private String cityName;

    @ApiModelProperty("小区")
    private String estateName;

    @ApiModelProperty("户型")
    private String houseType;

    @ApiModelProperty("价格")
    private String price;

    @ApiModelProperty("房源编号")
    private String propertyNo;

    @ApiModelProperty("房源主图")
    private String mainImageUrl;

    @ApiModelProperty("面积")
    private String square;

    @ApiModelProperty("分享类型: 1 分享到微信  2 保存图片")
    private Integer shareTo;
}
